%Returns total acquired time in seconds
function  total_time=total_time(path)

filename=[path '\data.h5'];
    delta_time = hdf5read(filename,'/t');
    data = hdf5read(filename,'/y');
   
    total_time = (length(data)-1)*delta_time;

    